<!DOCTYPE html>
<html lang="en"
      xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.thymeleaf.org"
      layout:decorator="layout/pc_master">
<div layout:fragment="content" class="section page-content">
    <link rel="stylesheet" href="/pc/css/home/login.css">
    <input type="hidden" id="type" value="reg">
    <div class="layui-main clearfix">
        <div class="login-warp clearfix">
            <div class="section-left">
                <div class="loginway" way="mobile">
                    <div class="loginway-navs">
                        <div class="group">
                            <a class="item" way="mobile" onClick="$('.loginway').attr('way','mobile')">手机注册</a>
                            <a class="item" way="email" onClick="$('.loginway').attr('way','email')">邮箱注册</a>
                        </div>
                    </div>

                    <div class="loginway-contet">
                        <div class="loginway-item" way="mobile">
                            <form bottlecms-form-ajax="" id="form_mobile" action="/m/ajax/user/register"
                                  class="registerform" method="post" onsubmit="return checkRegMobile()">
                                <input bottlecms-input type="hidden" name="way" value="mobile"/>
                                <input bottlecms-input type="hidden" name="source" value="pc"/>
                                <div class="bcui-form" style="padding-top: 10px;">

                                    <div class="form-item">
                                        <input bottlecms-input type="text" name="mobile" id="mobile" value=""
                                               placeholder="手机号"/>
                                        <i class="ricon icon-bottlecms-45"></i>
                                    </div>
                                    <div class="form-item">
                                        <input bottlecms-input type="text" name="smsyzm" id="smsyzm" value="" placeholder="验证码"
                                               maxlength="6" oninput="if(value.length>6)value=value.slice(0,6)"/>

                                        <button class="btn btn-warning btn-sm sendSms" type="button"
                                                style="position: absolute;top:50%; right: 5px; margin-top: -15px;">
                                            发送验证码
                                        </button>

                                    </div>


                                    <div class="form-item">
                                        <input bottlecms-input type="password" name="password" value=""
                                               placeholder="请输入密码 6-18字符"/>
                                        <i class="ricon icon-bottlecms-46"></i>
                                    </div>

                                    <div class="form-item" style="font-size: 14px; padding-left: 10px">
                                        <label>
                                            <input type="checkbox" name="accepted" class="agreement" id="chkSms" value="1">
                                            同意《<a target="_blank" class="_color" style=""
                                                  href="/common/about/agreement"><u>用户许可及服务协议</u></a>》
                                        </label>
                                    </div>
                                    <div class="form-item">
                                        <button class="btn  form-submit" type="submit">
                                            注册
                                        </button>
                                    </div>
                                    <div class="form-item">
                                        <div class="ub-f1" style="text-align: right;"><a
                                                href="/login"
                                                style="color: #999;font-size: 15px;">已有账号，马上登录>></a></div>
                                    </div>
                                </div>
                            </form>

                        </div>

                        <div class="loginway-item" way="email">
                            <form bottlecms-form-ajax="" id="form_email" action="/m/ajax/user/register"
                                  class="registerform" method="post" onsubmit="return checkRegEmail()">
                                <input bottlecms-input type="hidden" name="way" value="email"/>
                                <input bottlecms-input type="hidden" name="source" value="pc"/>
                                <div class="bcui-form" style="padding-top: 10px;">
                                    <div class="form-item">
                                        <input bottlecms-input type="text" name="email" id="email" value="" placeholder="邮箱"/>
                                        <i class="ricon icon-bottlecms-78"></i>
                                    </div>
                                    <div class="form-item">
                                        <input bottlecms-input type="text" name="emailyzm" id="emailyzm" value=""
                                               placeholder="验证码" maxlength="6"
                                               oninput="if(value.length>6)value=value.slice(0,6)"/>
                                        <button class="btn btn-warning btn-sm sendEmail" type="button"
                                                style="position: absolute;top:50%; right: 5px; margin-top: -15px;">
                                            发送验证码
                                        </button>

                                    </div>
                                    <div class="form-item">
                                        <input bottlecms-input type="password" name="password"  id="emailPwd" value=""
                                               placeholder="请输入密码 6-18字符"/>
                                        <i class="ricon icon-bottlecms-46"></i>
                                    </div>
                                    <div class="form-item" style="font-size: 14px; padding-left: 10px">
                                        <label>
                                            <input type="checkbox" name="accepted" class="agreement" id="chkEmail" value="1">
                                            同意《<a target="_blank" class="_color" style=""
                                                  href="/about/Agreement"><u>用户许可及服务协议</u></a>》
                                        </label>
                                    </div>
                                    <div class="form-item">
                                        <button class="btn  form-submit" type="submit">
                                            注册
                                        </button>
                                    </div>
                                    <div class="form-item">
                                        <div class="ub-f1" style="text-align: right;"><a
                                                href="/login"
                                                style="color: #999;font-size: 15px;">已有账号，马上登录>></a></div>
                                    </div>
                                </div>
                            </form>

                        </div>
                    </div>
                </div>

                <div style="height: 60px;"></div>

            </div>

            <div class="section-right">
                已有账号，<a href="/login" class="_color">立即登录>></a>
            </div>
        </div>
    </div>


</div>
<script layout:fragment="contentFooter" src="/pc/js/home/login.js" type="text/javascript"></script>
</html>